// 数据源类型常量
export const DataSourceType = {
  MySQL: "mysql",
  PostgreSQL: "postgresql",
  SQLServer: "sqlserver",
  Oracle: "oracle",
  MongoDB: "mongodb",
  Redis: "redis",
  Elasticsearch: "elasticsearch",
} as const;

// 数据源状态常量
export const DataSourceStatus = {
  Connected: "connected",
  Disconnected: "disconnected",
  Error: "error",
} as const;

// 从常量创建类型
export type DataSourceType =
  (typeof DataSourceType)[keyof typeof DataSourceType];
export type DataSourceStatus =
  (typeof DataSourceStatus)[keyof typeof DataSourceStatus];
